package com.yh.doing.interpret_pattern;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-09 17:10
 * @problem:
 **/
public class Context {
    private Map<String, Integer> map ;

    public Context(Map<String, Integer> map) {
        this.map = map;
    }

    public int get(String str) {
        return map.get(str);
    }

    public int put(String str,int i) {
        return map.put(str,i);
    }
}
